package com.lilili.ssh.relation.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lilili.ssh.relation.dao.RelationDao;
import com.lilili.ssh.relation.model.Relation;
import com.lilili.ssh.relation.service.RelationManager;
@Service
public class RelationManagerImpl implements RelationManager{
	@Autowired
	RelationDao dao;
	
	public void saveRelation(Relation relation){
		dao.saveRelation(relation);
	}
	
	public void removeRelation(String bookId){
		dao.removeRelation(bookId);
	}
	
	public Relation getRelation(String id){
		return dao.getRelation(id);
	}
	
	public List getRelationList(Relation relation){
		return dao.getRelationList(relation);
	}
	
	public List getRelationList(){
		return dao.getRelationList();
	}

}
